/*
 * Copyright (c) 2010 CCX(China) Co.,Ltd. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of
 * CCX(China) Co.,Ltd. ("Confidential Information").
 * It may not be copied or reproduced in any manner without the express 
 * written permission of CCX(China) Co.,Ltd.
 *
 * @author wangyaoxi
 * Date: 2010-7-12 下午12:38:52
 */
package com.ccxe.manage.util;

/**
 * @author wangyx
 * 
 */
public class NumberUtil {

	public static Integer parseIntOrZero(String str) {
		Integer result;
		try {
			result = Integer.parseInt(str);
		} catch (NumberFormatException e) {
			result = 0;
		}
		return result;
	}
}
